package tianqi.service.order;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import tianqi.entity.Order;
import tianqi.entity.OrderDetail;
import tianqi.entity.ShareOrder;
import tianqi.entity.UserY;
import tianqi.utils.TQMoneySmallException;
import tianqi.utils.TQStockException;

public interface OrderService {
	
	
	
	
	//保存订单信息
	public String saveOrder(Order o,List<OrderDetail> od,HttpServletRequest req, HttpServletResponse res) throws TQStockException;

	public List<Order> queryOrderByUid(UserY user);
	
	public Double queryMoneyByUid(UserY map);
	
	public void deleteOrderById(Order order);
	
	public void savePay(String orderId,UserY usery) throws TQStockException,TQMoneySmallException;

	public List<OrderDetail> queryOrderDetail(Order order);
	
	public Integer saveShareOrder(ShareOrder order);
	
	public List<ShareOrder> querySoSByUname(UserY order);
}
